import { defineConfig, loadEnv } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default ({ mode }) => {
  return defineConfig({
    plugins: [vue()],
    base: loadEnv(mode, process.cwd()).PROD ? './' : '/',
    server:{
      host:"localhost",
      port:8001,
      strictPort:false,
      open:true,
    }
  })
}

